package com.itheima.sc.pojo.pms;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@TableName("pms_product_category")
public class ProductCategory implements Serializable {
    private Long id ;
    private Long parentId;  //上机分类的编号：0表示一级分类
    private String name;
    private Integer level;  //分类级别：0->1级；1->2级
    private Integer productCount;
    private String productUnit;
    private Integer navStatus;  //是否显示在导航栏：0->不显示；1->显示
    private Integer showStatus;
    private Integer sort;
    private String icon ;
    private String keywords;
    private String description;

    //维护子级目录集合
    @TableField(exist = false)
    private List<ProductCategory> children;
}
